package ch01.ts;

import org.apache.log4j.Logger;

import javax.xml.ws.Endpoint;

/**
 * Created by zc on 2016/1/14.
 */
public class TimeServerPublisher {
    private static Logger logger = Logger.getLogger(TimeServerPublisher.class);

    private static String WS_URL = "http://127.0.0.1:9876/ts";

    public static void main(String[] args){
        Endpoint.publish(WS_URL, new TimeServerImpl());

        logger.info(WS_URL);
        logger.info("WebService published");

    }
}
